package cn.like.entity;

import cn.like.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 资源(AuthResource)表实体类
 *
 * @author like
 * @since 2021-07-08 15:59:12
 */
@Data
@TableName("auth_resource")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "资源")
@SuppressWarnings("serial")
public class AuthResource extends BaseEntity<AuthResource> {
	
	public static final String id_col_name = "id";
	public static final String code_col_name = "code";
	public static final String name_col_name = "name";
	public static final String menuId_col_name = "menu_id";
	public static final String method_col_name = "method";
	public static final String describe__col_name = "describe_";
	public static final String createUser_col_name = "create_user";
	public static final String createTime_col_name = "create_time";
	public static final String updateUser_col_name = "update_user";
	public static final String updateTime_col_name = "update_time";
	
	
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	@NotNull(message = "id不能为空")
	private Long id;
	
	/**
	 * 资源编码
	 * 规则：
	 * 链接：
	 * 数据列：
	 * 按钮：
	 */
	@ApiModelProperty(value = "资源编码 规则： 链接： 数据列： 按钮：")
	private String code;
	
	/**
	 * 接口名称
	 */
	@ApiModelProperty(value = "接口名称")
	private String name;
	
	/**
	 * 菜单ID
	 * #c_auth_menu
	 */
	@ApiModelProperty(value = "菜单ID#c_auth_menu")
	private Long menuId;
	@ApiModelProperty(value = "方法 POST GET等")
	private String method;
	
	/**
	 * 接口描述
	 */
	@ApiModelProperty(value = "接口描述")
	private String describe_;
	
	/**
	 * 创建人id
	 */
	@ApiModelProperty(value = "创建人id")
	@TableField(fill = FieldFill.INSERT)
	private Long createUser;
	
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	
	/**
	 * 更新人id
	 */
	@ApiModelProperty(value = "更新人id")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Long updateUser;
	
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
}